package com.bennu.common;

import org.springframework.web.bind.annotation.ExceptionHandler;

import java.sql.SQLIntegrityConstraintViolationException;

/**
 * 异常处理类
 * 删除分类时有菜品在分类中抛出异常
 */
public class CustomException extends RuntimeException {
    public CustomException(String message){
        super(message);
    }

}
